package user

import (
	"Project/global"
)

type UserSale struct {
	global.UserCommon
	SaleID     int64 `json:"sale_id" gorm:"index;NOT NULL; comment:用户唯一标识"`
	ShopID     int64 `json:"shop_id" gorm:"index;NOT NULL; comment:药店唯一标识"`
	ShopKeeper bool  `json:"shop_keeper" gorm:"comment:药店负责人"`
}

func (UserSale) TableName() string {
	return "user_sale"
}
